package com.zm.core.util;

import java.util.List;

import net.sf.json.JSONArray;

public class Json {

	public static String list2json(List list)
	{
		JSONArray jsonArray = JSONArray.fromObject(list);
		return jsonArray.toString();
	}
	public static List obj2list(Object obj)
	{
		JSONArray jsonArray = JSONArray.fromObject(obj);
		return (List)jsonArray;
	}

}
